#pragma once
#include <string>
#include "Tree.h"
#include <stdlib.h>
#include <stdio.h>
#include <set>

class Parser
{
public:
	Parser(void);
	~Parser(void);

	float parse(std::string expr);

private:
	static const std::set<std::string> operations;

	void parse_term(Tree *tree, std::string term);

	bool is_string(std::string str, std::string eq);
	bool is_number(std::string str);
	bool is_operator(std::string str);
};

